def init(player):
	from java.util import LinkedList
	from java.util import Collections
	from javax.swing import JOptionPane
	from module import DeckLoader
	from commands import NewCardCommand
	commands = LinkedList()
	deck = player.getZones().get(0)
	deckFile = JOptionPane.showInputDialog("Deck:")
	cardList = DeckLoader.loadDeck(deckFile)
	Collections.shuffle(cardList)
	i = cardList.iterator()
	while (i.hasNext()):
		card = i.next();
		commands.add(NewCardCommand(card.getSet(), card.getName(), deck))
	return commands